pkgname=fontsconf
pkgver=7
pkgrel=1
pkgdesc="Normal font configuration"
url="http://www.archlinux.org/"
arch=('i686' 'x86_64')
license=('custom')
depends=('fontconfig')
optdepends=()
makedepends=('tar')
provides=()
conflicts=()
source=(18-common.conf 26-{mac\_{english,cjk},ms_{vista_{cjk,english},xp_cjk},msttcorefonts}.conf 48-local{mac,xp,vista}.conf)
install=fontsconf.install
backup=(etc/fonts/local.conf)
options=('!libtool')

build() {
  cd ${startdir}
  msg "Install configure files..."
  for i in ${srcdir}/{18,26,48}-*; do
    install -Dm644 $i ${pkgdir}/etc/fonts/conf.avail/`basename $i`
  done
  
  install -d ${pkgdir}/etc/fonts/conf.d/
  cd ${pkgdir}/etc/fonts/conf.d/
  ln -sf ../conf.avail/26-{mac_{english,cjk},ms_{vista_{cjk,english},xp_cjk},msttcorefonts}.conf .
  ln -sf ../conf.avail/18-common.conf .
  
  if [ -e $startdir/local.conf ]; then
    install -Dm644 $startdir/local.conf ${pkgdir}/etc/fonts/local.conf
  fi
}
md5sums=('d6888c3bb03956a1a954b3f73c79b938'
         'ef981b2b998fa0de5e06fbb8eb131f2b'
         '50af9873bb99f99204b19aaa7451a60d'
         '98f40b26df7874b789cd78a538173b9b'
         'a96aff139befe1701450b40ae2dc162f'
         'ae91ce5f467c7186535da59fcf86413e'
         '0158e0e5867c92982e83b7cc11cb6d89'
         '3266d705ab1ad6cb18cd2c08f5b8c59b'
         '55c88e80a65f83354c83ecb6781c2401'
         'e80eb7c09576646b3da2a7d2afc3eb0f')
